package com.xinz.protocal.config;

import com.xinz.protocal.Serializer;
import com.xinz.protocal.serialization.ZipBinarySerializer;
import com.xinz.protocal.serialization.ZipJavaSerializer;

/**
 * 共享配置
 * @author xingyun
 *
 */
public interface ShareConfig {

	/**
	 * 序列化接口的配置
	 * @return
	 */
	Serializer getSerializer();
	
	public static class Default implements ShareConfig {

		Serializer serializer = new ZipJavaSerializer();
		
		@Override
		public Serializer getSerializer() {
			return serializer;
		}
		
	}
}
